#!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Introduce :
@File      : tasks.py
@Time      : 2022/2/16 17:58
@Author    : toby
"""
from __future__ import absolute_import, unicode_literals
from .celery import app

@app.task
def add(x, y):
    return x + y

@app.task
def mul(x, y):
    return x * y

@app.task
def xsum(numbers):
    return sum(numbers)